package com.by.mapper;

import com.by.bean.User;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author yqs
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据账号查询账号是否存在保证员工账号的唯一性
     * @param account 输入的账号
     * @return  1存在 0不存在
     */
    int queryUserByAccount(String account);

    int updateStatus(@Param("id") int id, @Param("status") int status);
//    List<Map> query1(Map<String, Object> params);
    User userIdByAccount(String account);
    User queryByAccount(String account);
}
